using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace BlimpControlPanel
{
   public partial class ParameterControl : UserControl
   {
      private bool evenBackground = false;

      public ParameterControl()
      {
         InitializeComponent();
      }

      public string ParameterName
      {
         get { return lblParameterName.Text; }
         set { lblParameterName.Text = value; }
      }

      public string ParameterValue
      {
         get { return lblParameterValue.Text; }
         set { lblParameterValue.Text = value; }
      }

      public string UnitsLabel
      {
         get { return lblUnitsLabel.Text; }
         set { lblUnitsLabel.Text = value; }
      }

      public bool EvenBackgroundColor
      {
         get { return evenBackground; }
         set
         {
            if (value == true)
               this.BackColor = Color.LightGray;
            else
               this.BackColor = Color.DarkGray;

            evenBackground = value;
         }
      }
   }
}
